package org.czh.rim;

import org.czh.rmi.IHelloService;

import java.rmi.Naming;

public class AppClient {
    public static void main(String[] args) throws Exception {
        IHelloService helloService = (IHelloService) Naming.lookup("rmi://127.0.0.1:1099/hello");
        String s = helloService.saYHello("czh");
        System.out.println("result = " + s);
    }
}
